<?php 
echo "<table class='table_resume'><tr>";
    echo "<td valign='top' width='260px'>";
    echo $this->element('menu_resume'); 
    echo "</td>";
    echo "<td class='pemisah'></td>";
    echo "<td valign='top'>";
    echo "<div class='form'>";
    echo "<h2> Resume Attachment</h2>";
    echo "<hr color='#2A7EF7'>";
        echo "<div class='kotak2'>"; 
        echo $form->create('Resume',array('action'=>'attachment','type'=>'file','onsubmit'=>'return validation'));
            if($this->data['Resume']['upload_file']!='')
            {
                echo "<div class='input'>";
                echo "<label> Resume Attachment </label>";
                echo $html->link('[ Download ]','../app/webroot/'.$this->data['Resume']['upload_file'],array(),false,false);
                echo "   ";
                echo $html->link('[ Delete ]',array('controller'=>'resumes','action'=>'delete_attachment'),array(),"Apakah Anda yakin ingin menghapus lampiran resume Anda?");
                echo "</div>";
            }
            
		    echo $form->input('id',array('type'=>'hidden'));
            echo $form->input('upload_file',array('type'=>'file'));
            echo "<div class='input'><label> &nbsp </label><input type='submit' value='Save & Next'></div>";
        echo "</form>";
        echo "</div>";
        echo ":. Silahkan simpan file disini <span class='red'>Word (.doc or .docx) </span> or <span class='red'>PDF (.pdf)</span> format";
    echo "</div>";
    echo "</td>";
echo "</tr></table>"; 

        
?>
